package com.sunyard.springcloudhystrix.Resilience4j;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zyl
 * @description
 * @since 2025/7/14
 */
@RestController
public class PaymentController {
    @Autowired
    private PaymentService paymentService;

    @GetMapping("/payment/{id}")
    public String pay(@PathVariable String id) {
        return paymentService.processPayment(id);
    }
}
